#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    connect(ui->mainWidget,SIGNAL(change_index(int)),ui->stackedWidget,SLOT(setCurrentIndex(int)));
    connect(ui->recipeScreen,SIGNAL(change_index(int)),ui->stackedWidget,SLOT(setCurrentIndex(int)));
    connect(ui->mainWidget,SIGNAL(whatToEat()),ui->recipeScreen,SLOT(on_WhatToEat_clicked()));
}

MainWindow::~MainWindow()
{
    delete ui;
}
